<?php

namespace app\admin\command;

use app\common\util\Tools;
use think\console\Input;
use think\console\Output;
use think\facade\Log;

class PassportTest extends CommonTest
{

    //再命令窗口中执行“php think interface-PassportTest”
    protected function configure()
    {
        $this->setName('interface-PassportTest')
            ->setDescription('接口测试');
    }

    public function execute(Input $input, Output $output)
    {
        parent::execute($input, $output);

        //Route::any('admin/getConfig', 'admin/passport/getConfig');                                                              // 获取网站登录页信息
//        $data = Tools::curl($this->url . "admin/getConfig", '');
//        Log::write("post". var_export($data,true));
//        echo $data . "\n";
    }
}
